package com.ruoyi.activiti.service.impl;

import java.util.List;

import com.ruoyi.activiti.domain.BizProcessInstanceRelation;
import com.ruoyi.activiti.mapper.BizProcessInstanceRelationExtMapper;
import com.ruoyi.activiti.service.IBizProcessInstanceRelationService;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-19
 */
@Service
public class BizProcessInstanceRelationServiceImpl implements IBizProcessInstanceRelationService
{
    @Autowired
    private BizProcessInstanceRelationExtMapper bizProcessInstanceRelationMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public BizProcessInstanceRelation selectBizProcessInstanceRelationById(Long id)
    {
        return bizProcessInstanceRelationMapper.selectBizProcessInstanceRelationById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param bizProcessInstanceRelation 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<BizProcessInstanceRelation> selectBizProcessInstanceRelationList(BizProcessInstanceRelation bizProcessInstanceRelation)
    {
        return bizProcessInstanceRelationMapper.selectBizProcessInstanceRelationList(bizProcessInstanceRelation);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param bizProcessInstanceRelation 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertBizProcessInstanceRelation(BizProcessInstanceRelation bizProcessInstanceRelation)
    {
        bizProcessInstanceRelation.setCreateTime(DateUtils.getNowDate());
        return bizProcessInstanceRelationMapper.insertBizProcessInstanceRelation(bizProcessInstanceRelation);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param bizProcessInstanceRelation 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateBizProcessInstanceRelation(BizProcessInstanceRelation bizProcessInstanceRelation)
    {
        bizProcessInstanceRelation.setUpdateTime(DateUtils.getNowDate());
        return bizProcessInstanceRelationMapper.updateBizProcessInstanceRelation(bizProcessInstanceRelation);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteBizProcessInstanceRelationByIds(String ids)
    {
        return bizProcessInstanceRelationMapper.deleteBizProcessInstanceRelationByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteBizProcessInstanceRelationById(Long id)
    {
        return bizProcessInstanceRelationMapper.deleteBizProcessInstanceRelationById(id);
    }

    @Override
    public List<BizProcessInstanceRelation> selectBizProcessInstanceRelationByIds(List<String> processInstances) {
        return bizProcessInstanceRelationMapper.selectBizProcessInstanceRelationByIds(processInstances);
    }
}
